package com.ycd.mapper;

import com.ycd.domain.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ProductMapper {

    void add(Product product);

    List<Product> findAll();
}
